/// 当前页结果集
class RedemptionPageResponseDto {
  /// 订单号
  final String? orderNum;
  /// 卡片代码
  final String? cardCode;
  /// 卡片价值
  final int? cashValue;
  /// 标记时间
  final String? createTime;

  RedemptionPageResponseDto({
    this.orderNum,
    this.cardCode,
    this.cashValue,
    this.createTime,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (orderNum != null) data['orderNum'] = orderNum;
    if (cardCode != null) data['cardCode'] = cardCode;
    if (cashValue != null) data['cashValue'] = cashValue;
    if (createTime != null) data['createTime'] = createTime;
    return data;
  }

  factory RedemptionPageResponseDto.fromJson(Map<String, dynamic> json) {
    return RedemptionPageResponseDto(
      orderNum: json['orderNum'],
      cardCode: json['cardCode'],
      cashValue: json['cashValue'],
      createTime: json['createTime'],
    );
  }
}